cmake_minimum_required(VERSION 3.9)
project(video)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/bin)

if (MSVC)
    add_compile_options(
        /utf-8
        /wd4996
    )
endif()

set(FF_ROOT "D:/ffmpeg-n4.4-178-g4b583e5425-win64-gpl-shared-4.4")

include_directories(
    ${FF_ROOT}/include
)
link_directories(
    ${FF_ROOT}/lib
)

set(avc_decode_SRCS
    avc_decode.c
)
add_executable(avc_decode ${avc_decode_SRCS})
target_link_libraries(avc_decode
    avcodec
    avutil
)